import request from '@/utils/request'

// 查询库存调拨单列表
export function listStocktransferbill(query) {
  return request({
    url: '/settlementCenter/basebill/stocktransferbill/list',
    method: 'get',
    params: query
  })
}

// 查询库存调拨单详细
export function getStocktransferbill(id) {
  return request({
    url: '/settlementCenter/basebill/stocktransferbill/' + id,
    method: 'get'
  })
}

// 新增库存调拨单
export function addStocktransferbill(data) {
  return request({
    url: '/settlementCenter/basebill/stocktransferbill',
    method: 'post',
    data: data
  })
}

// 修改库存调拨单
export function updateStocktransferbill(data) {
  return request({
    url: '/settlementCenter/basebill/stocktransferbill',
    method: 'put',
    data: data
  })
}

// 删除库存调拨单
export function delStocktransferbill(id) {
  return request({
    url: '/settlementCenter/basebill/stocktransferbill/' + id,
    method: 'delete'
  })
}
